<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Intelligent Writer Admin Login</title>
        <%- include('layout/common-css.html');%>
    </head>
    <body>
	<div class="content-page">
		<div class="am-g">
				<!-- col start -->
				<div class="am-u-md-12">
					<div class="card-box">
						<h4 class="header-title m-t-0 m-b-30">用户登陆</h4>
						<form class="am-form">
						    <div class="am-form-group">
						      <label for="doc-ipt-email-2">账号</label>
						      <input type="text" class="am-radius" id="unm" placeholder="输入账号名">
						    </div>
						
						    <div class="am-form-group">
						      <label for="doc-ipt-pwd-2">密码</label>
						      <input type="password" class="am-radius" id="pwd" placeholder="请输入密码" style="background-image: url(&quot;&quot;); background-repeat: no-repeat; background-attachment: scroll; background-size: 16px 18px; background-position: 98% 50%;">
						    </div>
						
						    <div class="am-checkbox">
						      <label>
						        <input type="checkbox"> 记住我
						      </label>
						    </div>
						
						    <button type="button" class="am-btn am-btn-primary" onclick="javascript:goto()">Submit</button>
						</form>
					</div>
				</div>
				<!-- col end -->
			</div>
	</div>
    <%- include('layout/bottom-js.html');%>
	<script type="text/javascript">
		var url = '<%-url%>';
		function goto(){
			var unm = document.getElementById('unm').value;
			var pwd = document.getElementById('pwd').value;
			if(unm && pwd){
				var new_loc = url.replace('://','://'+unm+':'+pwd+'@');
				window.location.href = new_loc;
			}else alert('请输入账号密码!');
		}
	</script>
</body>
</html>